using System;
using GURUCORE.Framework.Core.Util.Configuration;

namespace GURUCORE.Framework.Core
{

	public class AppConfiguration : ConfigurationBase
	{
		public const string GLOBAL_CACHE_KEY = "AppConfiguration";

        #region PUBLIC PROPERTIES
        
		private string m_sApplicationClass;
		private string m_sApplicationAssembly;
		private string m_sAutoStart;
		private string m_sAutoStartParam;
		private string m_sDefaultLocale;

		[ConfigurationKey("ApplicationClass")]
		public string ApplicationClass
		{
			get
			{
				return m_sApplicationClass;
			}
			set
			{
				m_sApplicationClass = value;
			}
		}

		[ConfigurationKey("ApplicationAssembly")]
		public string ApplicationAssembly
		{
			get
			{
				return m_sApplicationAssembly;
			}
			set
			{
				m_sApplicationAssembly = value;
			}
		}

		[ConfigurationKey("AutoStart")]
		public string AutoStart
		{
			get
			{
				return m_sAutoStart;
			}
			set
			{
				m_sAutoStart = value;
			}
		}

		[ConfigurationKey("AutoStartParam")]
		public string AutoStartParam
		{
			get
			{
				return m_sAutoStartParam;
			}
			set
			{
				m_sAutoStartParam = value;
			}
		}

		[ConfigurationKey("DefaultLocale")]
		public string DefaultLocale
		{
			get
			{
				return m_sDefaultLocale;
			}
			set
			{
				m_sDefaultLocale = value;
			}
        }

        #endregion

        #region CONSTRUCTOR
        
        public AppConfiguration(string p_sConfigFile) : base(p_sConfigFile,"ApplicationConfiguration")
		{
        }
     
        #endregion

    }
}
